package syerit.core.utils
{
	
	/** 
	 * @author Pavel Jacko syerit.com
	 */
	public class AsyncCallback
	{
		public var func:Function;
		public var funcParams:Array;
		
		public function AsyncCallback(func:Function=null,funcParams:Array=null)
		{
			this.func = func;
			this.funcParams = funcParams;
		}
		
		public function call():void
		{
			if(func!=null)
			{
				func.apply(this,funcParams);
				funcParams = null;
				func = null;
			}
		}

	}
}